package com.test.demo.service;

import com.test.demo.po.Team;

import java.util.List;

/**
 * Created by Cenoo on 2017/7/4.
 */

public interface TeamService {
    public int addTeam(Team team) throws Exception;
    public int requestToEnqueue(int userId, int teamId) throws Exception;
    public int exitTeam(int userId, int teamId) throws Exception;
    public int kickOut(int captainId, int userId, int teamId) throws Exception;
    public int breakRanks(int captainId, int teamId) throws Exception;
    public List<Team> getAllTeams() throws Exception;
    public List<Team> searchTeam(String keyword) throws Exception;
}
